package com.qd.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 岗位职责
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_station_set")
public class StationSet extends Model<StationSet> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "station_id", type = IdType.ASSIGN_ID)
    private String stationId;
    /**
     * 职责代码
     */
    @TableField("station_code")
    private String stationCode;
    /**
     * 职责名称
     */
    @TableField("station_name")
    private String stationName;
    /**
     * 排序
     */
    @TableField("idx")
    private Integer idx;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 是否启用
     */
    @TableField("enable")
    private String enable;

    public void freeData() {
        this.stationId = null;
        this.stationCode = null;
        this.stationName = null;
        this.idx = null;
        this.addTime = null;
        this.updateTime = null;
        this.enable = null;
    }

}
